import request from '@/utils/request'
export function listTypeVO() {
    return request({
      url: '/md/type/list',
      method: 'get'
     
    })
  }
  //deleteType
  export function deleteType(id) {
    return request({
      url: '/md/type/deletebyId?id=' + id,
      method: 'post'
      
    })
  }
  //typeInfo
  export function typeInfo(itemTypeId) {
    return request({
      url: '/md/type/info',
      method: 'get',
      params: {id : itemTypeId}
    })
  }
  //addType
  export function addType(data) {
    return request({
      url: '/md/type/save',
      method: 'post',
      data
    })
  }